#ifndef __DS1303_H__
#define __DS1303_H__
#include <REGX52.H>

#define DS1302_SECOND 	0X80
#define DS1302_MINUTE 	0X82
#define DS1302_HOUR 	0X84
#define DS1302_YEAR 	0X8C
#define DS1302_MONTH 	0X88
#define DS1302_DATE 	0X86
#define DS1302_DAY 		0X8A
#define DS1302_WP 		0X8E

void DS1302_Init(void);
void DS1302_WriteByte(unsigned char Command,Data);
unsigned char DS1302_ReadByte(unsigned char Command);
void DS1302_SetTime(void);
void DS1302_ReadTime(void);

extern unsigned char DS1302_Time[];
#endif